home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-10 | 713 b | 22 lines | [TEXT/ToyS] |
- -- Sample AppleScripts for touchMe, 1996 (C) Mizutori Tetsuya
- -- An applet to change the date time stamp of the given folder
- -- and all the items in the folder have the same stamp to the folder.
- -- Let's start to select a target folder!
-
- set theFolder to (choose folder)
-
- set docList to {}
- repeat with theItem in the list folder theFolder
- copy docList & (alias ((theFolder as string) & theItem)) to docList
- end repeat
-
- -- Once again 'theFolder' after the operations on items in the folder have finished.
- -- This is because the stamp of the folder may be updated if some items in it have changed.
- copy theFolder & docList & theFolder to docList
-
- tell application "touchMe"
- activate
- touch docList
- quit
- end tell
-